
//功能模块
var swiper = new Swiper("#function_swiper", {
    slidesPerView: 4,
    paginationClickable: true,
    // nextButton: '#function .swiper-button-next',
    // prevButton: '#function .swiper-button-prev',
    loop: true,
    simulateTouch: false,
    autoplay: 5000

    // centeredSlides : true,
});

document.getElementById("function_prev").addEventListener("click",function () {
    swiper.swipePrev();
});
document.getElementById("function_next").addEventListener("click",function () {
    swiper.swipeNext();
});




// 部分产品页不存在场景模块，需要判定吃否存在配置参数
if( typeof window.scenarioList === 'object'  ){
    new Vue({
        data:{
            activeId: 1,
            categoryList: scenarioList
        },

        methods:{

            activeHandle:debounce(function(id){
                if(typeof  id !== 'number'){
                    console.error("id参数错误")
                }

                this.activeId = Number(id);
            },300)
        }
    }).$mount('#scenario');
}





